import { createApp } from 'vue';
import router from './router';
import App from './App.vue';
// 图标，图标在附件中
import '@/assets/icon/iconfont.css';
// 全局样式
import '@/assets/base.scss';
// 引入cookie
import VueCookies from 'vue-cookies';
import 'element-plus/es/components/message/style/css'

// 引入工具类
import verify from '@/utils/verify.js';
import message from '@/utils/message.js';
import request from '@/utils/request.js';

import Dialog from '@/components/Dialog.vue';

const app = createApp(App);

app.use(router);

app.component("Dialog", Dialog);

// 配置全局组件
app.config.globalProperties.verify = verify;
app.config.globalProperties.message = message;
app.config.globalProperties.request = request;
app.config.globalProperties.VueCookies = VueCookies;
app.mount('#app');
